class Student:
    name = None
    gender = None
    nationality = None
    native_place = None
    age = None

    def saya_hi(self, msg):
        print(f"大家好，我是 {self.name},{msg}")


stu = Student()
stu.name = "周杰伦"
stu.saya_hi("哎呦不错哦")

stu2 = Student()
stu2.name = "林俊杰"
stu2.saya_hi("小伙子我看好你")


class Clock:
    id = None
    price = None

    def ring(self):
        import winsound
        winsound.Beep(2000, 3000)


clock1 = Clock()
clock1.id = "1"
clock1.price = "19.9"
print(f"闹钟id是{clock1.id}， 闹钟价格是{clock1.price}")
clock1.ring()


class Star:
    name = None
    age = None
    tel = None

    def __init__(self, name, age, tel):
        self.name = name
        self.age = age
        self.tel = tel


star1 = Star("林俊杰",  "30", "1833")
print(star1.name, star1.age, star1.tel)
